import Layout from '@/layout'

const materialdelivery = {
  path: '/material-delivery',
  component: Layout,
  redirct: 'material-delivery/accept-inform',
  name: '领料管理',
  meta: { title: '领料管理', icon: 'el-icon-s-goods', permissions: ['1', '2', '4', '5'] },
  children: [
    {
      path: 'pur-admin',
      name: '申请管理',
      component: () => import('@/views/material-delivery/pur-admin'),
      meta: { title: '申请管理', icon: 'el-icon-s-check' , permissions: ['4'] }
    },
    {
      path: 'purchase-plan',
      name: '领料计划申请',
      component: () => import('@/views/material-delivery/purchase-plan'),
      meta: { title: '领料计划申请', icon: 'el-icon-document-add', permissions: ['4'] }
    },
    {
      path: 'dep-audit',
      name: '部门领导领料审批',
      component: () => import('@/views/material-delivery/department-audit'),
      meta: { title: '部门领导领料审批', icon: 'el-icon-s-check' , permissions: ['1']}
    },
    {
      path: 'unit-audit',
      name: '单位领导领料审核',
      component: () => import('@/views/material-delivery/unit-audit'),
      meta: { title: '单位领导领料审核', icon: 'el-icon-s-check', permissions: ['2'] }
    },
    {
      path: 'deliver',
      name: '出库',
      component: () => import('@/views/material-delivery/delivery'),
      meta: { title: '出库', icon: 'el-icon-document-remove' , permissions: ['5'] }
    },
    {
      path: 'delivery-form',
      name: '出库记录',
      component: () => import('@/views/material-delivery/delivery-form'),
      meta: { title: '出库记录', icon: 'el-icon-s-check' , permissions: ['5'] }
    }
  ]
}

export default materialdelivery

